package com.itheima;

import com.itheima.mapper.OneToManyMapper;
import com.itheima.mapper.OneToOneMapper;
import com.itheima.pojo.Card;
import com.itheima.pojo.Classes;
import com.itheima.pojo.Employee;
import com.itheima.service.EmployeeService;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;
@Slf4j
@SpringBootTest
public class test {

    @Autowired
    private OneToOneMapper mapper;
    @Autowired
    private OneToManyMapper oneToManyMapper;
    @Test
    public void testSelectAll(){
        List<Card> cards = mapper.selectAll();
        log.info(cards.toString());
    }
    @Test
    public void testOneToManyMapper(){
        List<Classes> classes = oneToManyMapper.selectAll();
        log.info(classes.toString());
    }

}
